package com.example.javabean;
import java.util.Date;
import java.util.List;
public class User {
    private int uid;
    private String username;
    private String password;
    private String phone;
    private int id;
    private String name;
    private double sal;
    private Date birthday;

    public User() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSal() {
        return sal;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
    private Role r;

    public User() {
    }

    public Role getR() {
        return r;
    }

    public void setR(Role r) {
        this.r = r;
    }

    public int getUid() {
        return uid;
    }

    @Override
    public String toString() {
        ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", r=" + r +
                '}';
    }
}
